import request from '@/utils/request'

// 查询联动策略-动作列表
export function listAction(query) {
  return request({
    url: '/linkage/action/list',
    method: 'get',
    params: query
  })
}

// 查询联动策略-动作详细
export function getAction(linkageActionId) {
  return request({
    url: '/linkage/action/' + linkageActionId,
    method: 'get'
  })
}

// 新增联动策略-动作
export function addAction(data) {
  return request({
    url: '/linkage/action',
    method: 'post',
    data: data
  })
}

// 修改联动策略-动作
export function updateAction(data) {
  return request({
    url: '/linkage/action',
    method: 'put',
    data: data
  })
}

// 删除联动策略-动作
export function delAction(linkageActionId) {
  return request({
    url: '/linkage/action/' + linkageActionId,
    method: 'delete'
  })
}
